import request from "../utils/request";

export const queryAllDepts = ()=>request.get("/depts");

export const addDept=(data)=> request.post("/depts",data);

export const getDeptById=(id)=>request.get("/depts/"+id);

export const editDept=(data)=>request.put("/depts",data);

export const deleteById=(id)=>request.delete("/depts?id="+id)
